﻿@model IEnumerable<VideoCache.Server.Model.ChannelUrlTokenInfo>

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="ten-table" style="width:100%">
<thead>
    <tr>
        <th style="width:10px;text-align:center"><input type="checkbox" class="selectAll" group="chk" /></th>
        <th>频道</th>
        <th>网址</th>
        <th>视频名称</th>
        <th>标记</th>
        <th>访问次数</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td style="width:10px;text-align:center"><input type="checkbox" group="chk" value="@item.Id" /></td>
        <td>@item.ChannelId</td>
        <td><a href="@item.Url" target="_blank">@item.Url</a></td>
        <td>@item.VideoName</td>
        <td>@item.Token</td>
        <td>@item.RequestTimes</td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}
</tbody>
</table>
<div class="ten-pager">
@Html.Pager("page", (int)ViewBag.PageSize, (int)ViewBag.RecordCount)
</div>

